package org.ainlolcat.ainscience.statistics;

import java.util.Collection;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;

/**
 * @author ain
 *         Date: 13.01.13
 */
public class Statistic {
    Map<String,String> values = new HashMap();
    Map<String, StatisticHandler> handlers  = new HashMap();
    boolean updated =false;

    public Map<String, String> getValues() {
        return values;
    }

    public void addValues(Map<String, String> values) {
        this.values.putAll(values);
    }

    public void setValues(Map<String, String> values) {
        this.values = values;
    }

    public Map<String, StatisticHandler> getHandlers() {
        return handlers;
    }

    public void setHandlers(Map<String, StatisticHandler> handlers) {
        this.handlers = handlers;
    }

    public void setHandler(String name, StatisticHandler handler){
        handlers.put(name, handler);
    }

    public boolean isUpdated() {
        return updated;
    }

    public void setUpdated(boolean updated) {
        this.updated = updated;
    }
}
